package cn.tedu.storage.controller;

import cn.tedu.storage.service.StorageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 郭鲁政
 */
@RestController
public class StorageController {
    @Autowired
    private StorageService service;
    @GetMapping("/decrease")
    public String decrease(Long productId, Integer count){
        service.decrease(productId, count);
        return "业务执行成功";
    }
}
